<%--
 $Author:  翟锋$
 $Rev:  $
 $Date:: #$:
  
 Copyright (C) 2012 Seeyon, Inc. All rights reserved.
 This software is the proprietary information of Seeyon, Inc.
 Use is subject to license terms.
--%>
<!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>待发事项</title>
    <style>
      .layout_north {
        min-width: 100%!important;
      }
    </style>
    <%@ include file="/WEB-INF/jsp/common/commonColList.jsp"%>
	<%@ include file="/WEB-INF/jsp/ctp/workflow/workflowDesigner_js_api.jsp" %>
    <script type="text/javascript" charset="UTF-8" src="${path}/apps_res/collaboration/js/collaboration.js${ctp:resSuffix()}"></script>
    <script type="text/javascript" charset="UTF-8" src="${path}/apps_res/collaboration/js/CollaborationApi.js${ctp:resSuffix()}"></script>
    <script type="text/javascript" charset="UTF-8" src="${path}/apps_res/collaboration/js/listWaitSend.js${ctp:resSuffix()}"></script>
	<link rel="stylesheet" type="text/css" href="${path}/portal/icons/default/fonts/plane/mini_icon.css${ctp:resSuffix()}">
	<link rel="stylesheet" type="text/css" href="${path}/apps_res/bpm/portal/css/bpmPortalIndex.css${ctp:resSuffix()}" />
    <script type="text/javascript">
    	var pTemp = {"nodePolicy":'${newColNodePolicy}'};
  		//服务器时间和本地时间的差异
    	var server2LocalTime = <%=System.currentTimeMillis()%> - new Date().getTime();
        var _paramTemplateIds = "${ctp:escapeJavascript(paramMap.templeteIds)}";
        
        var paramMethod = "${ctp:escapeJavascript(param.method)}";
        
        //ouyp a6s邮件过滤
		var emailShow = ${v3x:hasPlugin('webmail')};
		var hasBarCode = "${ctp:hasPlugin('barCode')}";
		var hasDoc = "${ctp:hasPlugin('doc')}";
		var isShowTotal = "${ctp:escapeJavascript(isShowTotal)}";
		var canDel = "${ctp:escapeJavascript(canDel)}";
    </script>
</head>
<div id="workflow_definition" style="display: none">
    <input type="hidden" id="process_desc_by">
    <input type="hidden" id="process_xml">
    <input type="hidden" id="readyObjectJSON">
    <input type="hidden" id="workflow_data_flag" name="workflow_data_flag" value="WORKFLOW_SEEYON">
    <input type="hidden" id="process_info">
    <input type="hidden" id="process_subsetting">
    <input type="hidden" id="moduleType" value='1' >
    <input type="hidden" id="workflow_newflow_input">
    <input type="hidden" id="process_rulecontent"/>
    <input type="hidden" id="workflow_node_peoples_input">
    <input type="hidden" id="toReGo">
    <input type="hidden" id="workflow_node_condition_input">
</div>
<body>
    <div id='layout'>
        <div class="layout_north f0f0f0 border_t" id="north">
        <form id="advanceQueryParam">
        <div style="background-color: #F0F0F0">
                 <div class="more_query_area clearfix" style="display:none">
                    <div class="query_area_body clearfix">
                      <div class="record_item">
                        <div class="label">${ctp:i18n("common.subject.label") }:</div>
                        <div class="content">
                          <input type="text" id = "subject" name="subject"/>
                        </div>
                      </div>
                      <div class="record_item">
                        <div class="label">${ctp:i18n("common.importance.label") }:</div>
                        <div class="content">
                          <select id="importantLevel">
							<option value="">${ctp:i18n("collaboration.newcoll.qxz") }</option>
                            <option value="1">${ctp:i18n("common.importance.putong") }</option>
                            <option value="2">${ctp:i18n("common.importance.zhongyao") }</option>
                            <option value="3">${ctp:i18n("common.importance.feichangzhongyao") }</option>
                          </select>
                        </div>
                      </div>

                      <div class="record_item">
                        <div class="label">${ctp:i18n("common.date.create.label") }:</div>
                        <div class="content">
                          <div class="input_group">
                             <input id="from_createDate" class="comp sub_input" type="text" comp="type:'calendar',ifFormat:'%Y-%m-%d',showsTime:true">
                            <span class="tiem_icon"></span>
                          </div>
                          <span class="middle_line"></span>
                          <div class="input_group">
                            <input id="to_createDate" class="comp sub_input" type="text" comp="type:'calendar',ifFormat:'%Y-%m-%d',showsTime:true">
                            <span class="tiem_icon"></span>
                          </div>
                        </div>
                      </div>
                      <div class="record_item">
                        <div class="label">${ctp:i18n("common.coll.state.label") }:</div>
                        <div class="content">
                          <select id="subState">
						  <option value="">${ctp:i18n("collaboration.newcoll.qxz") }</option>
                            <option value="1">${ctp:i18n("collaboration.substate.1.label") }</option>
                            <option value="2">${ctp:i18n("collaboration.substate.new.2.label") }</option>
                            <option value="3">${ctp:i18n("collaboration.substate.3.label") }</option>
                          </select>
                        </div>
                      </div>
                     <div class="query_area_footer clearfix">
                        <div class="query_btns clearfix">
                            <div class="query_btn left blue" onclick="advanceQuery('listWaitSend')">
                                <span class="label">${ctp:i18n("common.button.condition.search.label") }</span>
                            </div>
                            <div class="query_btn left gray" onclick="resetParam()">
                                <span class="label">${ctp:i18n("common.button.reset.label") }</span>
                            </div>
                            <c:if test="${ctp:hasPlugin('barCode')}">
                            <div class="left flex display_none"   value="barcode" id="col_smart_code">
		                        <div class="label query_btn_barcode" >[${ctp:i18n("common.barcode.search.saoyisao") }]</div>
	                            <i class="vp-disconnect" id="scanState"></i>
		                    </div>
		                    </c:if>
                        </div>
                     </div>
                    </div>
                  </div>
                </div>
                </form>
            <!-- 如果是业务生成器创建的一个列表菜单，则不显示面包屑 -->
            <c:if test="${param.srcFrom ne 'bizconfig' }">
                <div class="comp" comp="type:'breadcrumb',comptype:'location',code:'F01_listWaitSend'"></div>
            </c:if>
            <input type='hidden' id='frombizconfigIds' value="${fn:escapeXml(param.textfield)}"/>
            <input type='hidden' id='bisnissMap' value="${fn:escapeXml(param.textfield)}"/>
            <table width="100%" border="0" cellpadding="0">
            	<tr>
            		<td><div id="toolbars"></div></td>
            		<td style="padding-bottom:5px" width="60" align="center" valign="center">
            		     <a id="combinedQuery"  class="font_size12 common_button combinedQuery" onclick="showAdvanceSearch();" >${ctp:i18n("common.advance.label") }</a>
            		</td>
            	</tr>
             </table>
            <form id="sendForm" method="post">
                <input type="hidden" id="bpmMenuFlag" name="bpmMenuFlag"  value ="0"/>
            	<input type="hidden" id="affairId" name="affairId" />
            	<input type="hidden" id="summaryId" name="summaryId" />
            </form>
        </div>
        <div class="layout_center over_hidden" id="center">
            <table  class="flexme3" id="listWaitSend"></table>
            <div id="grid_detail" class="h100b">
                <iframe id="summary"  width="100%" height="100%" frameborder="0" class='calendar_show_iframe' style="overflow-y:hidden"></iframe>
            </div>
        </div>
    </div>
    <ctp:smartCode
            onChangeState="col_onChangeState"
            readerCallBack="col_codeCallback"
            decodeParamFunction="list_wait_send_precodeCallback"
            decodeType="codeflowurl"
            scanType="3"
            onCloseSmartCode="col_onCloseCode"
            onOpenSmartCode="col_onOpenCode"
    />
</body>
</html>
